define(["app", "angular", "services/BaseService"], function(app, angular) {
	
	var deps = ["$http", "BaseService"];
	
	function yokiVicePicResource($http, BaseService) {
        return initResource($http, BaseService.restfulUrl + "voicePic/", BaseService.formHeader);
    }
	
	var postHeader = {
	        "Content-Type" : "application/x-www-form-urlencoded;charset=utf-8"
	};
	
	function initResource($http, preUrl,formHeader) {
        return {
        	deleteLocalVoicePic:function(yokiVoiceId){
                return $http.get(preUrl +yokiVoiceId+ "/deleteLocalVoicePic");
            },
            queryLocalVoicePicList: function (pageNo,pageSize) {
                return $http.get(preUrl + "queryLocalVoicePicList", {
                    params: {
                        pageSize: pageSize || 10000,
                        pageNo: pageNo || 1
                    }
                });
            },
        };
        
    }
	yokiVicePicResource.$inject = deps;
	app.lazy.factory("AddYokiVicePicResource", yokiVicePicResource);
});
